#!/bin/sh
num=1
a=0
while [ $num -le 10 ]
do
    SUM=`expr $num \* $num`
    echo $SUM
    a=`expr $a + $SUM`
    num=`expr $num + 1`
    
done
echo "the sum of 1 4 9 16 ... 100 is $a"
